FROM xxfaxy/self-alpine-python
RUN mkdir -p /data/mysql
WORKDIR /data
COPY code /data
RUN chmod a+x /data/*
RUN rm -rf /data/*.pyc
COPY common/crontab /etc/crontabs/root
COPY common/run.sh /run.sh
RUN chmod a+x /run.sh
COPY common/mysqldump /usr/bin/mysqldump
RUN chmod a+x /usr/bin/mysqldump
CMD ["/run.sh"]
